package global

import (
	"os"
	"sync"
)

const RecoverActive = "gtRecover"
const (
	ChannelDefault = 10000000
	SocketFile     = "/tmp/db2s.sock"
	PidFile        = "/tmp/db2s.pid"
	FileLock       = "/tmp/db2s.lock"
	DataFix        = "dataFix"
)

const (
	StructColumnSplit = "/*column*/"
	SchemaTableSplit  = "/*schema0table*/"
	DataRowsSplit     = "/*go actions rowData*/"
	DataColumnsSplit  = "/*go actions columnData*/"
)
const (
	MonitorInterval  = 1
	WordInsertNumber = 10000
)
const (
	PartitionTypeSplit = "/*p_type*/"
	PartitionSplit     = "/*p_split*/"
	ShardNameSplit     = "/*shardName*/"

	MonitorBarFinishFileName = "ttyBarFinish"
	VerifyAbnormal           = "verifyAbnormal"
	BreakPointFileName       = "breakPointFinish.point"
	ObjectMissFileName       = "object.miss"
	ActiveDataResultFileName = "activeData"
	ObjectResult             = "objectFinish"
	ParameterRecord          = "parameterRecord"
)

var XlsTextData = make(map[string]*os.File)

type SyncResult struct {
	Sum      int64  //实际行数
	Select   int64  //源端查询数
	Insert   int64  //目标端写入数
	Status   string //状态值
	TimeCost string //表耗时
}

var ScLock sync.Mutex
var ParameterOldValue map[string] /*shardName*/ map[string] /*parameter Name*/ string /*old values*/
var (
	GTableCurry chan struct{}
)
